# # 1
# # 录入学生信息





# class student:
#     def __init__(self,name,age,sex,num):
#         self.name=name
#         self.age=age
#         self.num=num
#         self.sex=sex
        
#     def info (self):
#         print(self.name,self.age,self.sex,self.num)

# rw=[]
# for i in range(1,6):
#     s=input(f'请输入第{i}信息，姓名#年龄#性别#分数').split('#')
#     k=student(s[0],s[1],s[2],s[3])
#     rw.append(k)
# for i in rw:
#     i.info()





# # 3
# # 面向对象弹奏





# class erhu:

#     def t():
#         print('二胡在弹奏')
# class xiaotiq:

#     def t():
#         print('小提琴在弹奏')
# class gangq:

#     def t():
#         print('钢琴在弹奏')

# class yueq(erhu,xiaotiq,gangq):
#     def __init__(self,x):
#         self.x=x
#     def s(self):
#         self.x.t()



# a=erhu
# b=xiaotiq
# c=gangq

# yueq(a).s()
# yueq(b).s()
# yueq(c).s()






# # 4
# # 面向对象出租车





# class car:
#     def __init__(self,num,xin):
#         self.num=num
#         self.xin=xin
#     def start(self):
#         print('启动')
#     def end(self):
#         print('停止')   


# class sicar(car):
#     def __init__(self, num, xin,name):
#         super().__init__(num, xin)
#         self.name=name
#     def start(self):
#         print(f'我的车牌号是{self.num},车主就是我本人{self.name},车型是{self.xin}，汽车，启动')
#     def end(self):
#         print('到目的地了，下车吧')   
    
# class gongcar(car):
#     def __init__(self, num, xin,loc):
#         super().__init__(num, xin)
#         self.loc=loc
#     def start(self):
#         print(f'乘客你好，我是{self.loc}的{self.xin}车，车牌号{self.num},你要去哪里')
#     def end(self):
#         print('到位置了，请付款')   

# a=sicar(114514,'ab','alx')
# b=gongcar(101,'acc','456')
# a.start()
# a.end()
# b.start()
# b.end()
